import request from '@/utils/request'

/** 获取运费模板列表 */
export const freightTemplateList = data => {
  return request({
    url: '/shop/freightTemplate/list',
    method: 'post',
    data
  })
}
/** 新增运费模板-快递发货 */
export function FreightTemplateAdd(data) {
  return request({
    url: '/shop/freightTemplate/add',
    method: 'post',
    data
  })
}
/** 新增运费模板-同城添加 */
export function addSameCityAdd(data) {
  return request({
    url: '/shop/freightTemplate/addSameCity',
    method: 'post',
    data
  })
}

/** 删除 */
export function FreightTemplateDel(data) {
  return request({
    url: '/shop/freightTemplate/del',
    method: 'post',
    data
  })
}

/** 快递模板编辑 */
export function FreightTemplatekEdit(data) {
  return request({
    url: '/shop/freightTemplate/kEdit',
    method: 'post',
    data
  })
}

/** 同城模板编辑 */
export function FreightTemplatetEdit(data) {
  return request({
    url: '/shop/freightTemplate/tEdit',
    method: 'post',
    data
  })
}

